<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{serviceSupplierManageList.firstResult}"></f:viewParam>	
	   	<f:viewParam name="moduleName" value="中介用户管理"></f:viewParam>
	   	<f:viewParam name="supplierName" value="#{serviceSupplierManageList.parameterValues['supplierName']}"></f:viewParam>
   		<f:viewParam name="auditStatus" value="#{serviceSupplierManageList.parameterValues['auditStatus']}"></f:viewParam>
   	</f:metadata>
   
   	<ui:define name="content">
   
		<h:form id="searchForm">
			<div style="height:50px;margin-left:10px">				
				<p:outputLabel value="中介名称："></p:outputLabel>				
				<p:inputText value="#{serviceSupplierManageList.parameterValues['supplierName']}"></p:inputText>
				<p:outputLabel value="审核状态："></p:outputLabel>				
				<p:selectOneMenu style="position: relative;top: 8px;" value="#{serviceSupplierManageList.parameterValues['auditStatus']}">
								<f:selectItem itemLabel="请选择" itemValue="#{null}"  />
								<f:selectItem itemLabel="未审核" itemValue="#{2}" />
								<f:selectItem itemLabel="审核成功" itemValue="#{1}" />
								<f:selectItem itemLabel="审核失败" itemValue="#{0}" />
				</p:selectOneMenu>
				
				<div class="actionButtons">
					<p:commandButton value="查询" ajax="false"   action="ServiceSupplierList_admin.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0" styleClass="blue-int"></p:commandButton>
					<p:button value="重置" outcome="ServiceSupplierList_admin.xhtml"></p:button>
				</div>		
				<div class="clearbt"></div>
			</div>
			
			<p:panel id="searchResult">
				<f:facet name="header">中介用户管理</f:facet>
				<p:dataTable value="#{serviceSupplierManageList.resultList}" var="_serviceSupplier">
					
					<p:column>
						<f:facet name="header">名称</f:facet>
						#{_serviceSupplier.cnname}
					</p:column>
					
					<p:column>
						<f:facet name="header">用户名</f:facet>
						#{_serviceSupplier.username}
					</p:column>
					<p:column>
						<f:facet name="header">邮箱</f:facet>
						#{_serviceSupplier.email}
					</p:column>
				</p:dataTable>
			</p:panel>
			
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{serviceSupplierManageList}" />
			</ui:include>
			
		</h:form>
      
   	</ui:define>
</ui:composition>
